package cn.iocoder.cloud.rocketmq.producer;

import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.iocoder.cloud.rocketmq.producer.Producer;
/**
 * @author dengxiudong
 * @Date 2024/7/19 下午3:48
 */

@RestController
@RequestMapping("/send")
public class SendController
{
    @Resource
    private Producer producer;

    @GetMapping("/msg")
    void sendMsg(String msg) {
        producer.sendTagMsg(msg);
    }
}
